﻿@model WordSmith_V1.ViewModel.ChapterSummaryViewModel

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_AuthenticatedPagesLayout.cshtml";
}



<h2>@Model.Book.Title</h2>
<p>by @Model.Author.FirstName @Model.Author.LastName</p>


<div class="imageArea">
    <img id="img1" src=@Model.Author.Image />
</div>
<div class="chapterSummary">
   <div> <span class="labelSpan">Description:</span>
    <span >@Model.Chapter.Description</span>
    </div>
   <div> <span class="labelSpan">Tags:</span>
    @foreach (var item in @Model.Tag)
    {
        <span>@item.Name,</span>
    }
    </div>
    <div>
    <span class="labelSpan">Genre:</span>
    <span>@Model.Genre</span>
    </div>
    <div>
        <span class="labelSpan">Create Date:</span>
        <span> @Model.Chapter.CreateDate.ToString("d")</span>
    </div>
    <div>
        <span class="labelSpan">Last Modified Date:</span>
        <span> @Model.Chapter.CreateDate.ToString("d")</span>
    </div>
    <div>
    <span class="labelSpan">Status:</span>
    <span>Not Published; Authorisation Pending </span>
    </div>
    <div class="summaryWriting">
    <br />
    <br />
    <span class="labelSpan block">@Model.Chapter.Title</span> 
    <span class="writing">@Model.Chapter.Writing</span>
    </div>
</div>
<div class="bottomBttnArea">
    <input type="submit" value="edit" name="Edit" id="submit" onclick="location.href='@Url.Action("Edit", "Chapter", new { chapterId = Model.Chapter.ChapterId })'"/>
    <input type="submit" value="share" name="Share With Friends" id="submit"/>
    <input type="submit" value="continue" name="Continue" id="submit" onclick="location.href='@Url.Action("Index", "Book", new { bookId = Model.Book.BookId })'"/>
</div>


